//RectCont.h - Class RectCont

#ifndef _RECTCONT_H_
#define _RECTCONT_H_

#define MAX_RECT 10

#include "Point.h"
#include "Rect.h"

using namespace std;

class RectCont
{
private:
	(Rect*) rectCont[MAX_RECT];
	int m_counter;
	void shrinkRect(int emptyIndex);
public:
	RectCont();
	int findRectIndex(Point& point);
	int removeRect(Point& point);
	bool addRect(Point& point, int length, int width);
	bool addRect(Rect& rect);
	bool shiftRect(Point& point, int incX, int incY);
	bool isContFull();
	bool bringRectToFront(Point& point);
	bool bringRectToBack(Point& point);
	void drawAll(char ch, bool isFull);
	bool drawAllExecptOneSpecial(Point& point, char chAll, char chSpec, bool isFullFilling);
	RectCont(RectCont& rect);
	~RectCont();
};

#endif

